import sys
import unittest

import HTMLTestRunner_PY3

case = unittest.defaultTestLoader.discover(start_dir="./", pattern="test_*.py")


filename = f"./{sys.argv[1]} Per {sys.argv[2]} report.html"

with open(filename, mode='wb') as f:
    runner = HTMLTestRunner_PY3.HTMLTestRunner(f)
    runner.run(case)